// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import './websocket/socket'
// import router from './router/routers'
import './router/index'
import store from '@/store/store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// eslint-disable-next-line no-unused-vars
import Vuex from 'vuex'
import './router/routers' // permission control
import VueRouter from 'vue-router'
import router from './router/routers'

Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.use(Vuex)

Vue.config.productionTip = false

// Axios.defaults.baseURL = '/api'

/* eslint-disable no-new */
// eslint-disable-next-line no-unused-vars
new Vue({
  el: '#app',
  render: h => h(App),
  router,
  store
  // components: { App },
  // template: '<App/>'
})
